home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_t / topov100.zip / TOPO.DOC < prev    next >
Text File  |  1992-09-06  |  12KB  |  287 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.             T O P O   - The 3-D Topographic Map Plotting Program
  8.                                 Version 1.0
  9.  
  10.  
  11.                         (c) 1992 by Donald A. Burrows
  12.  
  13.  
  14.  
  15.                             Basic Instructions
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.     INTRODUCTION
  23.  
  24.         This program began as a long time dream to be able to put topographic
  25.     maps in to my comuter so that I could view any region at any scale and
  26.     from any point of view I desired. My opportunity came when I acquired
  27.     an AT clone and gained access to an USGS topographic data base of the
  28.     United States on a mainframe computer. The entire database was too
  29.     large for my 60MB hard disk so I chopped portions of it into 1 degree
  30.     latitude by 1 degree longitude blocks and stored them as individual
  31.     files on floppy diskettes. At the same time I discovered Lee Adams'
  32.     book "Supercharged C Graphics" which gave me the 3-D graphics subroutines
  33.     I needed to put together this program.  It's a fairly flexible program
  34.     that allows one to depict the data not only as more or less traditional
  35.     contour maps (Conic Projection, with standard parallels at 38 and 46
  36.     degrees North), but also as 3-D oblique views both with color contours
  37.     and black and white shaded relief surfaces.
  38.  
  39.         The program is designed primarily to be used in the VGA 640x480x16
  40.     mode, but will operate in the EGA 640x350x16 and 640x200x16 modes as
  41.     well but with degraded graphics. While it will run without a math
  42.     co-processor, it is highly recommended to have one as otherwise the
  43.     plotting procedure can be incredibly slow. It's performance on an AT
  44.     with a math co-processor is adequate, but it runs very nicely on 33MHz
  45.     486 machine. The program was intended to be used on a hard disk with
  46.     the topographic data files on floppy diskettes; however, it can be
  47.     run with both program and data on floppys or both on the hard disk.
  48.  
  49.  
  50.     GETTING STARTED
  51.  
  52.         This section is for those who want to learn the program by doing.
  53.     Examples will be given showing how to produce several different types
  54.     of maps. It is assumed that the files TP46121.DAT, WESTWASH.PCX and
  55.     MTRAINR.PCX are present in the same directory or diskette as TOPO.EXE.
  56.  
  57.         Assuming the files are on the C drive in a directory named TOPO,
  58.     the program can be started by entering
  59.  
  60.     C:\TOPO > TOPO
  61.  
  62.         Once the program screen is displayed, then menu selections can be
  63.     made by either using a mouse and the left mouse button or by the use of
  64.     the arrow and enter keys. Most menu boxes can be exited by using the
  65.     escape key or the right mouse button.
  66.  
  67.         To start with here is how to view two completed maps.
  68.  
  69.         Map #1 - WESTWASH.PCX - This is a color contour map of western
  70.     Washington state and southwestern British Columbia, and covers all
  71.     the area contained in the MAPDATA1.ZIP file. and consists of 22, 1
  72.     degree by 1 degree quadrangles.
  73.  
  74.         1. Using mouse and left button or arrow and enter keys select REGION.
  75.         2. Next select the item LOAD MAP in the menu box.
  76.         3. Enter WESTWASH.PCX followed by <ENTER>. It should be displayed
  77.         on the bottom line.
  78.  
  79.         Map #2 - MTRAINR.PCX - This is a black and white shaded relief view
  80.     of Mount Rainier from 23 miles to the northwest. To view it repeat steps
  81.     1 and 2 above, then enter MTRAINR.PCX followed by <ENTER>.
  82.  
  83.         This next section tells how to create new maps of the region in
  84.     the topographic data file TP46121.DAT which shows a section of the
  85.     Cascade mountains of southern Washington including two major volcanic
  86.     peaks, Mt. Rainier (14,410 ft.) and Mt. Adams (12,326 ft.).
  87.  
  88.         Map #3 - Plot the entire 1 degree quadrangle contained in TP46121.DAT.
  89.  
  90.     1. select REGION
  91.     2. select SELECT REGION
  92.     3. enter for Northern Boundary  47 <ENTER>
  93.        enter for Southern Boundary  46 <ENTER>
  94.        enter for Western Boundary  122 <ENTER>
  95.        enter for Eastern Boundary  121 <ENTER>
  96.     4. select TYPE
  97.     5. select HIRES CONTOUR
  98.     6. select FEATURES
  99.     7. select VIEWPOINT
  100.     8. enter for Azimuth Angle   0  <ENTER>  (North at top of screen)
  101.        enter for Vertical Angle  0  <ENTER>  (View from directly overhead)
  102.        enter for Distance (miles) 0 <ENTER>  (Autoscale to fit area on screen)
  103.     9. select FEATURES
  104.     10. select SET CONTOURS
  105.     11. enter for base elevation (ft)  0  <ENTER>  (sea-level)
  106.         enter for contour interval (ft)  1000 <ENTER>
  107.     12. select REGION
  108.     13. select  CLEAR SCREEN  (assuming an image is already being displayed)
  109.     14. select REGION
  110.     15. select DISPLAY
  111.  
  112.         Map #4 - Once the whole region is displayed, then particular areas
  113.     of interest can be noted and a new map centered on those regions can be
  114.     created. In this case the focus shifts to Mt. Rainier in the northwest
  115.     corner of the previous map and a black and white shaded relief drawing
  116.     is specified.
  117.  
  118.     1. select REGION
  119.     2. select SELECT REGION
  120.     3. enter for Northern Boundary   47
  121.        enter for Southern Boundary   46.75
  122.        enter for Western Boundary   122
  123.        enter for Eastern Boundary   121.5
  124.     4. select TYPE
  125.     5. select SHADED (B/W)
  126.     6. select FEATURES
  127.     7. select VIEWPOINT
  128.     8. enter for Azimuth Angle     90     (0 is viewing to the north, 90 to
  129.             the east, 180 to the south and 270 to the west)
  130.        enter for Vertical Angle    80    (This is 80 degrees from overhead or
  131.             10 degrees above the horizon)
  132.        enter for Distance          16    (miles)
  133.     9. select FEATURES
  134.     10. select SET SOLAR ANGLE
  135.     11. enter for Solar Azimuth  120   (180 is directly behind observer, 90
  136.             to the observers right, 270 to observers left and 0 directly in
  137.             front of observer.)
  138.     12. enter for Solar Height    35   (90 places sun overhead, 0 at horizon)
  139.     13. select REGION
  140.     14. select CLEAR SCREEN
  141.     15. select REGION
  142.     16. select DISPLAY
  143.  
  144. DESCRIPTION OF MENU OPTIONS
  145.  
  146. REGION - Under this heading a map region can be specified, the screen cleared,
  147. a completed map viewed, a newly drawn map saved or the current selection
  148. plotted.
  149.  
  150.     SELECT REGION - Under this heading the northern, southern, western and
  151.     eastern boundaries of a region to be plotted can be specified. The units
  152.     are degrees and decimal fractions of degrees. North latitude and West
  153.     longitude are positive values.
  154.  
  155.     CLEAR SCREEN - This removes any currently displayed images from the
  156.     screen. In the black and white mode it can also be used to replace
  157.     a black background with a white background.
  158.  
  159.     LOAD MAP - This is for viewing saved maps and should work with any
  160.     ZSoft PCX files.
  161.  
  162.     SAVE - This is used to save completed maps using the ZSoft PCX format.
  163.     Files are automatically named beginning with mapfil00.pcx up through
  164.     mapfil99.pcx.
  165.  
  166.     DISPLAY - This causes a map to be plotted using the currently specified
  167.     map parameters.
  168.  
  169. TYPE - Under this heading the map plotting mode i.e contour or shaded, can
  170.         be selected.
  171.  
  172.     SHADED (B/W) - This specifies a black and white shaded relief type plot.
  173.     If a black background is desired choose CLEAR SCREEN before selecting
  174.     SHADED (B/W). If a white background is desired then choose CLEAR SCREEN
  175.     after selecting SHADED (B/W). This also specifies a high contrast mode.
  176.     A lower contrast mode can be obtained by selecting ALT PALETTE under
  177.     FEATURES.
  178.  
  179.     HIRES CONTOUR - This specifies a plot using the color contour mode. It
  180.     also specifies a blue background. Using HIRES CONTOUR and ALT PALETTE
  181.     one can toggle back and forth between a white background and a blue
  182.     background.
  183.  
  184.     ABOUT TOPO - Displays version, author and copyright date.
  185.  
  186. FEATURES - Under this heading a number of different plotting options can
  187. be specified, such as selecting an alternate color palette, setting the
  188. point from which the map is to be viewed, setting the contour interval,
  189. and setting the direction of the lighting.
  190.  
  191.     ALT PALETTE - In color contour mode this specifies a palette with a
  192.     white background and a pink max contour color. In black and white mode
  193.     it specifies a lower contrast gray scale than the default palette.
  194.  
  195.     SET VIEWPOINT - This is used to specify the placement of the observer
  196.     relative to the map. The default azimuth angle is 0 degrees which places
  197.     north at the top of the map. 90 would place east at the top, 180 - south,
  198.     and 270 - west. The default vertical angle is 0 degrees which indicates
  199.     that the map is being viewed from directly overhead. 90 degrees in this
  200.     case would mean that the observer would be looking at the map horizontal-
  201.     ly from sea-level. Distance is specified in miles from a point at
  202.     sea-level located horizontally in the center of the map. The default
  203.     value is 155 miles which is a good value for observing a 1 degree by 1
  204.     degree region from directly overhead. Entering a distance of 0,
  205.     will cause the program to autoscale to fit the selected region on the
  206.     screen assuming that both azimuth angle and vertical angles are also 0.
  207.  
  208.     SET CONTOURS - This option is used to specify the altitude from which
  209.     color contours are computed and the altitude interval between successive
  210.     colors. In the 16 color mode there are 15 altitude intervals. If the
  211.     base elevation is 0 (sea-level) and the contour interval is 500 ft. then
  212.     the background (blue or white) color will indicate all regions of
  213.     altitude 0; the dark green, altitude 0 to 500; up to white or pink for
  214.     all regions over 7500 ft. The default value of the base elevation is 0,
  215.     and the default value for the contour interval is 600 ft. Note: In the
  216.     topographic data files the elevations are specified to only the nearest
  217.     10 meters above sea level, consequently areas that are less than 5
  218.     meters above sea level have apparently been rounded off to 0 so that
  219.     they will be displayed asocean instead of being displayed as land.
  220.     The order of the color contours is as follows:
  221.  
  222.             Sea Blue / White
  223.             Dark Green
  224.             Green
  225.             Light Green
  226.             Dark Yellow-Green
  227.             Light Yellow-Green
  228.             Yellow
  229.             Brown
  230.             Dark Brown
  231.             Tan
  232.             Orange
  233.             Dark Gray
  234.             Light Gray
  235.             Light Tan
  236.             Light Olive
  237.             White / Pink
  238.  
  239.     SET SOLAR ANGLE - This applies to the shaded mode and determines the
  240.     direction of the lighting relative to the observer. A solar azimuth
  241.     angle of 0 has the lighting coming from directly in front of the observer,
  242.     while a value of 90 will have it coming from the observers right, 180 -
  243.     from behind the observer and 270  - from the observers left. Solar height
  244.     determines the vertical angle from which the lighting will come. In
  245.     this case 0 degrees would indicate the sun is on the horizon of the
  246.     map and 90 would place it directly overhead. Default values are: Solar
  247.     Azimuth - 120 degrees and Solar Height 35 degrees.
  248.  
  249. MAGNIFY - This allows the vertical scale of the maps to be enhanced. It
  250. has no effect of the contour display. Selecting x1 means that there is no
  251. vertical exageration i.e. the vertical scale is the same as the horizontal
  252. scale. Four different vertical magnifications can be selected. 1.5 times
  253. normal, 2 times normal, 3 times normal and 5 times normal.
  254.  
  255. QUIT - This exits the program. Pressing <ALT>X has the same effect.
  256.  
  257.  
  258. Version 1.0 of TOPO is a first release and the author would appreciate
  259. hearing about your experiences and ideas concerning TOPO. Other
  260. topographic files can also be obtained. Contact the author for more
  261. information at
  262.  
  263.         GE mail address  D.BURROWS2
  264.  
  265.         or  Don Burrows
  266.             526 Belmont Road
  267.             Grand Forks, ND 58201
  268.             (701) 775-3523
  269.  
  270.  
  271. --------------------IMPORTANT -- WARRANTY & DISCLAIMER -----------------
  272.  
  273. TOPO version 1.0 is freely provided for use without charge and may be
  274. freely distributed. The author makes NO warranties, expressed or implied
  275. as to the quality or the performance of this program. The author will
  276. NOT be held liable for any direct, indirect, incidental or consequential
  277. damage resulting from the use of this program. Your use of this program
  278. constitutes your agreement to this disclaimer and your release of the
  279. author from any form of liability or litigation.
  280. ----------------------------------------------------------------------------
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.